<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: wurenjie
  Date: 15/5/4
  Time: 18:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>讨论版</title>
    <s:include value="head.jsp" />

</head>
<body>
<div class="body-container">
    <s:include value="header.jsp" />
    <div class="infoBox">
        <div class="infoBox-content">
            <div class="infoBox-icon">
                <img src="http://honoka.qiniudn.com/20150524035814180/Kancolle_logo.jpg" style="text-align:center">
            </div>
            <div class="infoBox-text">
                <p>nya~nya</p>
                <p>小伙伴们在这个版块可以畅所欲言nya~</p>
            </div>
        </div>
    </div>
    <div class="comment">
        <div class="threadWrap">
            <table class="table table-hover" style="margin-bottom: 0px">
                <tbody>
                    <s:iterator value="threads" id="it" status="st">
                    <tr>
                        <td>
                            <div class="thread" id="thread">
                                <div class="reply-number" id="reply-number">
                                    <s:property value="repliesCount.get(#it.id)" default="0"/>
                                </div>
                                <div class="thread-title">
                                    <a href="/thread/<s:property value="#it.id"/>"><h3><s:property value="#it.title"/> </h3></a>
                                </div>
                                <s:action name="getthreadlasttimeandreply" executeResult="true" ignoreContextParams="true">
                                    <s:param name="input" value="#it.floorid"/>
                                </s:action>
                            </div>
                        </td>
                    </tr>
                    </s:iterator>
                </tbody>
            </table>
        </div>
        <form id="titleForm" action="" method="post">
                <div class="comment-container">
                    <div class="comment-image">
                        <s:if test="#session.login_user==null||(#session.login_user).getAvatar()==null">
                            <img src="http://honoka.qiniudn.com/20150524035814180/Kancolle_logo.jpg" height="60" width="60">
                        </s:if>
                        <s:else>
                            <img src="<s:property value="(#session.login_user).getAvatar()"/>" height="60" width="60">
                        </s:else>
                    </div>
                    <div class="comment-title">
                        <input type="text" class="comment-title-input" placeholder="标题" style="height:40px">
                    </div>
                    <div class="input-textarea">
                        <textarea name="sayTxt" id="wikiEdit-textarea" rows="5" class="input" placeholder="说点什么吧"></textarea>
                        <div class="insert-image">
                            <a><span class="glyphicon glyphicon-picture"></span></a>
                        </div>
                        <div class="comment-button">
                            <div id="message"></div>
                            <button class="btn btn-primary">发布</button>
                        </div>
                    </div>

                <div class="clear"></div>
                </div>
        </form>
        <div class="clear"></div>
        <!--留言板内容-->
        <div id="sayWrap"></div>
        <!--页数-->
        <div class="pageCount"></div>
    </div>
    <!--置顶-->

    <!--模态框-->
    <s:include value="modal_mask.jsp" />
    <s:include value="footer.jsp" />
</div>
<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script src="/Public/js/jquery.feelywikicode.min.js"></script>
<script src="/Public/js/main.js"></script>
</body>
</html>
